wayland/surface: Clear shadow width when hiding
authorJonas Ådahl <jadahl@gmail.com>
Fri, 4 Dec 2020 17:35:01 +0000 (18:35 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 7 Dec 2020 19:37:29 +0000 (20:37 +0100)
commit351d88f7ae1492048988122b7f0d4a8fc2db9294
treea6ad5040d87b5452a245c540ae0df6071f621560
parentdfb7ab3352109f3a3313c0f6b20754b3d9eab2ea
wayland/surface: Clear shadow width when hiding

Not doing this means the next time the same surface is shown, if the
shadow size wasn't changed, it wouldn't be sent to the compositor, which
then would result in compositor deriving its own window geometry which
would include the shadow margin.

This fixes an issue where the file chooser dialog would grow each time
it opened.
gdk/wayland/gdksurface-wayland.c